﻿#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include "testthread2.h"

namespace Ui {
class Dialog;
}

class Dialog : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog(QDialog *parent = nullptr);
    ~Dialog();

private slots:
    void on_pushButton_clicked();
    void on_pushButton_3_clicked();
    void on_pushButton_2_clicked();

private:
    Ui::Dialog *ui;
    TestThread2 *t2; // 定义子线程的指针

signals:
    void ResetSignal();

private slots:
    void DisplayMsg(int num);

};

#endif // DIALOG_H
